import React from 'react';
import '../../style/noData.less';


/*
* 属性props
*  icon         图标。number 有两种可选0、1、2，默认：0
*  text         文本内容 string
*  className    class
*  style        style
*
* */

const WeaDocNoData = (props) => {
   const { icon, text, className, style } = props;
   return (
      <div className={`WeaDoc-NoData ${className}`} style={style}>
         { icon === 0 && <i className="icon-coms-NoData" /> }
         { icon === 1 && <i className="icon-coms-blank" /> }
         { icon === 2 && <img src={'/spa/document/images/noreport.png'} alt="" draggable={false} />}
         <span>{ text }</span>
      </div>
   );
};

WeaDocNoData.defaultProps = {
   icon: 0,
   text: '',
   className: '',
   style: {},
};

export default WeaDocNoData;
